package com.lucene.model;

import java.sql.Timestamp;

/**
 * Created by zhangzhen on 26/10/2017.
 */
public class Contact extends Prototype{

    private byte[] headImage;//微信头像
    private String niceName;//微信昵称
    private String name;//微信名称
    private Boolean isGroup;//是不是微信群
    private Integer number;//群成员数量
    private Boolean focus;//是否是关注
    private Boolean text;//文本
    private Boolean voice;//语音
    private Boolean video;//视频
    private Boolean pict;//图片信息
    private Boolean nameCard;//名片信息
    private Boolean system;//系统消息
    private Boolean media;//媒体消息
    private Boolean verify;//验证消息

    public Contact(String name, String niceName, Boolean isGroup) {
        this.name = name;
        this.niceName = niceName;
        this.isGroup = isGroup;
    }

    public Contact(String name, String niceName, Boolean isGroup, Timestamp create, Timestamp update) {
        this.name = name;
        this.niceName = niceName;
        this.isGroup = isGroup;
        setUpdate_time(update);
        setCreate_time(create);
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getNiceName() {
        return niceName;
    }

    public void setNiceName(String niceName) {
        this.niceName = niceName;
    }

    public Boolean getGroup() {
        return isGroup;
    }

    public void setGroup(Boolean group) {
        isGroup = group;
    }

    public Integer getNumber() {
        return number;
    }

    public void setNumber(Integer number) {
        this.number = number;
    }

    public Boolean getFocus() {
        return focus;
    }

    public void setFocus(Boolean focus) {
        this.focus = focus;
    }

    public Boolean getText() {
        return text;
    }

    public void setText(Boolean text) {
        this.text = text;
    }

    public Boolean getVoice() {
        return voice;
    }

    public void setVoice(Boolean voice) {
        this.voice = voice;
    }

    public Boolean getVideo() {
        return video;
    }

    public void setVideo(Boolean video) {
        this.video = video;
    }

    public Boolean getPict() {
        return pict;
    }

    public void setPict(Boolean pict) {
        this.pict = pict;
    }

    public Boolean getNameCard() {
        return nameCard;
    }

    public void setNameCard(Boolean nameCard) {
        this.nameCard = nameCard;
    }

    public Boolean getSystem() {
        return system;
    }

    public void setSystem(Boolean system) {
        this.system = system;
    }

    public Boolean getMedia() {
        return media;
    }

    public void setMedia(Boolean media) {
        this.media = media;
    }

    public Boolean getVerify() {
        return verify;
    }

    public void setVerify(Boolean verify) {
        this.verify = verify;
    }

    public byte[] getHeadImage() {
        return headImage;
    }

    public void setHeadImage(byte[] headImage) {
        this.headImage = headImage;
    }

    @Override
    public String toString() {
        return "Contact{" +
                "name='" + name + '\'' +
                ", niceName='" + niceName + '\'' +
                ", isGroup=" + isGroup +
                ", number=" + number +
                ", focus=" + focus +
                ", text=" + text +
                ", voice=" + voice +
                ", video=" + video +
                ", pict=" + pict +
                ", nameCard=" + nameCard +
                ", system=" + system +
                ", media=" + media +
                ", verify=" + verify +
                '}';
    }
}
